/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Ethnicity Hispanic Member4</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.hl7.v3.V3Package#getEthnicityHispanicMember4()
 * @model extendedMetaData="name='EthnicityHispanic_._member_._4'"
 * @generated
 */
public enum EthnicityHispanicMember4 implements Enumerator {
	/**
	 * The '<em><b>21352</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21352_VALUE
	 * @generated
	 * @ordered
	 */
	_21352(0, "_21352", "2135-2"),

	/**
	 * The '<em><b>21824</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21824_VALUE
	 * @generated
	 * @ordered
	 */
	_21824(1, "_21824", "2182-4"),

	/**
	 * The '<em><b>21840</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21840_VALUE
	 * @generated
	 * @ordered
	 */
	_21840(2, "_21840", "2184-0"),

	/**
	 * The '<em><b>21782</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21782_VALUE
	 * @generated
	 * @ordered
	 */
	_21782(3, "_21782", "2178-2"),

	/**
	 * The '<em><b>21808</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21808_VALUE
	 * @generated
	 * @ordered
	 */
	_21808(4, "_21808", "2180-8");

	/**
	 * The '<em><b>21352</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21352</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21352
	 * @model literal="2135-2"
	 * @generated
	 * @ordered
	 */
	public static final int _21352_VALUE = 0;

	/**
	 * The '<em><b>21824</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21824</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21824
	 * @model literal="2182-4"
	 * @generated
	 * @ordered
	 */
	public static final int _21824_VALUE = 1;

	/**
	 * The '<em><b>21840</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21840</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21840
	 * @model literal="2184-0"
	 * @generated
	 * @ordered
	 */
	public static final int _21840_VALUE = 2;

	/**
	 * The '<em><b>21782</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21782</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21782
	 * @model literal="2178-2"
	 * @generated
	 * @ordered
	 */
	public static final int _21782_VALUE = 3;

	/**
	 * The '<em><b>21808</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21808</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21808
	 * @model literal="2180-8"
	 * @generated
	 * @ordered
	 */
	public static final int _21808_VALUE = 4;

	/**
	 * An array of all the '<em><b>Ethnicity Hispanic Member4</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final EthnicityHispanicMember4[] VALUES_ARRAY =
		new EthnicityHispanicMember4[] {
			_21352,
			_21824,
			_21840,
			_21782,
			_21808,
		};

	/**
	 * A public read-only list of all the '<em><b>Ethnicity Hispanic Member4</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<EthnicityHispanicMember4> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Ethnicity Hispanic Member4</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EthnicityHispanicMember4 get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			EthnicityHispanicMember4 result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Ethnicity Hispanic Member4</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EthnicityHispanicMember4 getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			EthnicityHispanicMember4 result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Ethnicity Hispanic Member4</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EthnicityHispanicMember4 get(int value) {
		switch (value) {
			case _21352_VALUE: return _21352;
			case _21824_VALUE: return _21824;
			case _21840_VALUE: return _21840;
			case _21782_VALUE: return _21782;
			case _21808_VALUE: return _21808;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EthnicityHispanicMember4(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //EthnicityHispanicMember4
